package com.neuedu.model;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;

public class News {
	private int newsNo;
	private String title;
	private NewsType newsType;
	private String author;
	private String content;
	private String image;
	@JSONField(format="yyyy/MM/dd HH:mm:ss")	
	private Date posttime;
	private String origin;
	public int getNewsNo() {
		return newsNo;
	}
	public void setNewsNo(int newsNo) {
		this.newsNo = newsNo;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public NewsType getNewsType() {
		return newsType;
	}
	public void setNewsType(NewsType newsType) {
		this.newsType = newsType;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}
	public Date getPosttime() {
		return posttime;
	}
	public void setPosttime(Date posttime) {
		this.posttime = posttime;
	}
	public String getOrigin() {
		return origin;
	}
	public void setOrigin(String origin) {
		this.origin = origin;
	}
	public News(int newsNo, String title, NewsType newsType, String author, String content, String image, Date posttime,
			String origin) {
		super();
		this.newsNo = newsNo;
		this.title = title;
		this.newsType = newsType;
		this.author = author;
		this.content = content;
		this.image = image;
		this.posttime = posttime;
		this.origin = origin;
	}
	public News() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	
	
}
